#ifndef SDR_BUTTON_H_INCLUDED
#define SDR_BUTTON_H_INCLUDED

#include "SDR_Surface.h"

enum SDR_ButtonStatus
{
    SDR_BUTTON_OUT, SDR_BUTTON_OVER, SDR_BUTTON_DOWN
};
typedef enum SDR_ButtonStatus SDR_ButtonStatus;

struct SDR_Button
{
    SDR_Surface * out;
    SDR_Surface * over;
    SDR_Surface * down;

    SDR_Rect * rect;

    uint8_t alpha;
    int16_t x, y;
    uint16_t w, h;
    uint8_t show;

    SDR_Rect * sensitiveRect;

    SDR_ButtonStatus status;

    uint8_t selectable;
    uint8_t selected;

};
typedef struct SDR_Button SDR_Button;


#endif // SDR_BUTTON_H_INCLUDED
